package ym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ym.pojo.MealPlan;

import java.util.List;

public interface MealPlanService {
    void add(MealPlan mealPlan);

    void update(MealPlan mealPlan);

    void delete(Integer id);
    void deleteByNutritionPlanId(Integer nutritionPlanId);

    MealPlan findById(Integer id);

    List<MealPlan> findAll();

    Page<MealPlan> search(String search, int page, int size);

    Page<MealPlan> searchByNutritionPlanId(Integer nutritionPlanId, String search, int page, int size);
}
